<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMpWeixinToken extends Migration
{
    /**
     * Run the migrations.
     *微信token
     * @return void
     */
    public function up()
    {
        //
        Schema::create('weixin_token', function (Blueprint $table) {
            $table->engine = 'MyISAM';
            $table->comment='微信token';
            $table->increments('id')->comment('自增键');
            $table->string('token',255)->default('')->comment('token');
            $table->mediumInteger('category')->unsigned()->unique('category')->default(0)->comment('0,表示个人，1表示企业');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::drop('weixin_token');
    }
}
